Skip to content

feat: lifeos -r accepts an optional session ID#1430

Open
borfast wants to merge 1 commit into
danielmiessler:mainfrom
borfast:feat/lifeos-resume-session-id
Open

feat: lifeos -r accepts an optional session ID#1430
borfast wants to merge 1 commit into
danielmiessler:mainfrom
borfast:feat/lifeos-resume-session-id

Conversation

@borfast

@borfast borfast commented Jul 6, 2026

Copy link
Copy Markdown

Problem

The launcher only forwards a bare --resume to Claude Code, so lifeos -r <session-id> trips the argument parser's unknown-command error — there is no way to resume a specific session through the launcher. Falling back to plain claude -r <session-id> loses the appended constitutional system prompt, and on multi-profile setups (CLAUDE_CONFIG_DIR) it looks in the wrong config root's session store entirely.

Change

-r/--resume now accepts an optional session ID:

  • lifeos -r — unchanged; opens Claude Code's interactive session picker.
  • lifeos -r <session-id> — forwards --resume <session-id>, resuming that session with the constitution and the correct profile intact.

The ID is only consumed when the next token doesn't start with -, so all existing flag combinations behave exactly as before. Help text updated to match.

Verification

  • lifeos -r with no ID still launches the picker (bare --resume forwarded, unchanged behaviour).
  • lifeos -r <id> forwards --resume <id> and resumes the named session.
  • lifeos -r -m bd still parses -m as a flag, not as a session ID.

The launcher only forwarded a bare --resume, so 'lifeos -r <session-id>'
tripped the unknown-command error and there was no way to resume a
specific session through the launcher (plain 'claude -r <id>' loses the
appended system prompt and, on multi-profile setups, looks in the wrong
config root's sessions).

'k -r' with no ID keeps the interactive picker; 'k -r <id>' forwards
'--resume <id>' to Claude Code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant